﻿// -----------------------------------------------------------------------------
// Generate By Furion Tools v2.16.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using HOPU.OnlineSchool.Core;

namespace HOPU.OnlineSchool.Core
{
    public partial class Members : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<Members, MasterDbContextLocator>
    {
    
        public int Id { get; set; }
        public string Username { get; set; }
        public int? Age { get; set; }
    
        public void Configure(EntityTypeBuilder<Members> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.ToTable("members");

                entityBuilder.Property(e => e.Id).HasColumnName("id");

                entityBuilder.Property(e => e.Age).HasColumnName("age");

                entityBuilder.Property(e => e.Username)
                    .HasMaxLength(100)
                    .HasColumnName("username");
        }

    }
}
